package a04_prototype;

import java.util.ArrayList;
import java.util.List;

public class Client {

	public static void main(String[] args) throws CloneNotSupportedException {
		Prototype prototype = new ConcretePrototype();
		prototype.setName("mainName");
		List<Prototype> lp = new ArrayList<>();
		for (int i = 0; i < 100; i++) {
			Prototype p = (Prototype) prototype.clone();
			p.setSpecialName("special_" + i);
			lp.add(p);

		}
		for (Prototype p : lp) {
			System.out.println(p.getName() + " " + p.getSpecialName());
		}

	}

}
